DefaultValue Property (DataGrid Control)

       

Sets the default value for new column data.

Syntax

object.DefaultValue [= value]

The DefaultValue property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
value A Variant expression containing the default value for the specified column.

Remarks

The DataGrid control does not use this property itself, but provides it as a placeholder for you to associate default values with columns in a DataGrid control. This property can be used as a tag for a column. Arbitrary values can be stored and retrieved later.